﻿using Adp;
using Microsoft.AspNetCore.Builder;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NewI.Models;
using Microsoft.Extensions.Hosting;

namespace NewI
{
    public class Startup
    {
        public PlusInfo PlusInfo
        {
            get
            {
                return new PlusInfo
                {
                    PlusName = "新建开发"
                };
            }
        }
        public void ConfigureServices(IServiceCollection services, IConfiguration configuration, ILogger _logger)
        {
            //添加数据库
            services.AddDbContext<NewIContext>();


            //添加应用服务
            //services.AddTransient<SiteService>();
        }
        public void Configure(IApplicationBuilder app, IConfiguration configuration, IHostingEnvironment env, ILogger _logger)
        {

        }
    }
}
